@echo off
echo 手动打包 Electron 应用...

echo 创建输出目录...
if not exist "dist" mkdir dist
if not exist "dist\manual" mkdir dist\manual

echo 复制 Electron 运行时...
xcopy /E /I /Y node_modules\electron\dist dist\manual\

echo 复制应用文件...
copy main.js dist\manual\resources\app\
copy package.json dist\manual\resources\app\

echo 复制依赖...
xcopy /E /I /Y node_modules\express dist\manual\resources\app\node_modules\express\
xcopy /E /I /Y node_modules\cors dist\manual\resources\app\node_modules\cors\

echo 重命名可执行文件...
ren dist\manual\electron.exe "File Picker Service.exe"

echo 打包完成！
echo 可执行文件位于: dist\manual\File Picker Service.exe
pause 